#ifndef ON_OFF_VERIFY_H
#define ON_OFF_VERIFY_H

#include <QDialog>
#include <QPushButton>
#include <QLineEdit>
#include <QLabel>
#include <QMessageBox>
#include <QSql>
#include <QDebug>
#include <QtSql/QSqlError>
#include <QtSql/QSqlQuery>
namespace Ui {
class ON_Off_Verify;
}

class ON_Off_Verify : public QDialog
{
    Q_OBJECT

public:
    explicit ON_Off_Verify(QWidget *parent = 0);
    ~ON_Off_Verify();
    bool CON_MYSQL_Patient();
    QSqlDatabase db;
    QSqlQuery query;

private:
    Ui::ON_Off_Verify *ui;
    QLabel *Warning_lable;
    QLabel *Passwd_lable;
    QLineEdit *passwd_line;
    QPushButton *OK_ptn;
    QPushButton *cencer_ptn;
protected slots:
    void OK_ptn_clicked();
    void cencer_ptn_clicked();
};

#endif // ON_OFF_VERIFY_H
